#ifndef __HIKARI_BULLET_PHYS_H_COMPONENT__
#define __HIKARI_BULLET_PHYS_H_COMPONENT__

#include "hikari.h"

class BulletPhysicsHComponent:public hComponent{
private:
	btRigidBody*rigidBody;
	vector3df offsetPos;
	vector3df offsetRot;
public:

	BulletPhysicsHComponent(HObj*object, btRigidBody*rigidBody, vector3df&offsetPos,vector3df&offsetRot){
		setUpdateOnRender(true);
		this->rigidBody=rigidBody;
		this->offsetPos=offsetPos;
		this->offsetRot=offsetRot;
	}

	virtual void update(HikariContext*context, HObj*object){
		
	}

	btRigidBody*getRigidBody(){
		return rigidBody;
	}

	virtual void onSceneLoad(HikariContext*context, HObj*object);

	virtual void onSceneUnload(HikariContext*context, HObj*object);

	virtual void onRender(HikariContext*context, HObj*object);
};

#endif